/**
 * @author Cetin Mericli
 * 
 * @modifier Okan Aşık
 *
 *
 */
public class Map 
{
	static final int NEAR = 15;
	static final int MODERATE = 30;
	static final int FAR = 50;
	
	/*//this was the original map
	// Modify that function so that it reflects the map you will be using
	int expectedDistance( int location )
	{
		int ret = 0;
		
		if ( location >=0 && location < 50 )
		{
			ret = NEAR;
		}
		else if ( location >=70 && location < 100 )
		{
			ret = MODERATE;
		}
		else if ( location >=130 && location < 150 )
		{
			ret = NEAR;
		}
		else if ( location >= 180 && location <= 200 )
		{
			ret = NEAR;
		}
		else
		{
			ret = FAR;
		}
		return ret;
	}
	
	*/
	
	//my map
	int expectedDistance( int location )
	{
		int ret = 0;
		
		if ( location >=0 && location < 40 )
		{
			ret = FAR;
		}
		else if ( location >=40 && location < 60 )
		{
			ret = NEAR;
		}
		else if ( location >=60 && location < 110 )
		{
			ret = FAR;
		}
		else if ( location >= 110 && location <= 130 )
		{
			ret = NEAR;
		}
		else if (location >= 130 && location <= 150) {
			ret = MODERATE;
		}
		else if (location >= 150 && location <= 170)
		{
			ret = NEAR;
		}
		else
		{
			ret = FAR;
		}
		return ret;
	}
}
